import axios from './axios'

export const logins = function(url , params){
    return axios({
        method:'get',
        url,
        params: params || {}
    })
}
export const logins2 = function(url , data){
    return axios({
        method:'post',
        url,
        data: data || {}
    })
}

export const getList = function(url , params){
    return axios({
        method: 'get',
        url,
        params: params || {}
    })
}

export const queryList = function(url , params){
    return axios({
        method: 'get',
        url,
        params: params || {}
    })
}

export const addList = function(url , data){
    return axios({
        method: 'post',
        url,
        data: data || {}
    })
}

export const deletList = function(url , data){
    return axios({
        method: 'post',
        url,
        data: data || {}
    })
}

export const putData = function(url, data){
    return axios({
        method:'post',
        url,
        data
    })
}

export const getText = function(url , params){
    return axios ({
        method: 'get',
        url,
        params
    })
}